package com.yinhai.message.web.dao;

import com.yinhai.core.common.api.base.IPage;
import com.yinhai.core.service.ta3.domain.dao.HibernateDAO;
import com.yinhai.message.web.po.UserContactPo;
import com.yinhai.message.web.vo.MessageWebUserVo;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * 
 * @author xiepx 2017.3.28 联系信息dao
 *
 */
@Repository("userContactDao")
public class UserContactDaoImpl extends HibernateDAO<UserContactPo> implements IUserContactDao{

	@Override
	public UserContactPo save(UserContactPo po) {
		save(po);
		return po;
	}
	@Override
	public  void update(UserContactPo po) {
		update(po);
	}


	@Override
	public IPage<MessageWebUserVo> queryMessageUsers(String hql, Map<String, Object> params, int page, int rows, String gridId) {
		return super.selectFromMultiTableWithPage(hql, params, page, rows, gridId);
	}

	@Override
	public UserContactPo queryContactByUserId(String hql, Long userId) {
		return super.selectFiled(hql, userId);
	}
}
